package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/** 
 * @author liuxin
 * @create 2023-12-14 09:21:15 
 * @description 点播商品表 
 */
@Data
@TableName(value ="yx_vod_product")
@ApiModel(value = "点播商品表" , description="yx_vod_product")
public class YxVodProductEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "vod_product_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long vodProductId;

    @TableField(value="product_name")
    @ApiModelProperty(value="商品标题")
    private String productName;

    @TableField(value="product_master_pic")
    @ApiModelProperty(value="商品主图")
    private String productMasterPic;

    @TableField(value="product_detail_pic")
    @ApiModelProperty(value="商品详情页")
    private String productDetailPic;

    @TableField(value="product_id")
    @ApiModelProperty(value="商品库ID")
    private Long productId;

    @TableField(value="create_id")
    @ApiModelProperty(value="创建人")
    private Long createId;

    @TableField(value="create_name")
    @ApiModelProperty(value="创建人名称")
    private String createName;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="status")
    @ApiModelProperty(value="状态： 0-下架 1-上架")
    private Integer status;

    @TableField(value="video_id")
    @ApiModelProperty(value="对应点播视频ID")
    private Long videoId;

    @TableField(value="review_video_id")
    @ApiModelProperty(value="审核视频ID")
    private Long reviewVideoId;

    @TableField(value="total_cnt")
    @ApiModelProperty(value="库存")
    private Integer totalCnt;

    @TableField(value="price")
    @ApiModelProperty(value="价格")
    private Double price;

}
